/*
 * @lc app=leetcode.cn id=1 lang=golang
 *
 * [1] 两数之和
 */

// @lc code=start

func twoSum(nums []int, target int) []int {
	var l int = len(nums)
	var n int
	for i := 0; i < l; i++ {
		n = target - nums[i]
		for j := i + 1; j < l; j++ {
			if n == nums[j] {
				return []int{i, j}
			}
		}
	}
	return []int{1, 1}
}

// @lc code=end
